package foodserver;

import java.util.List;


import javax.servlet.http.HttpServlet;

import com.subway.babynote.syncdata.ClientDataRecord;
import com.subway.babynote.syncdata.ClientDataRecordBase;

import querysrc.*;

/**
 * Servlet implementation class getfoodtable
 */

public class getfoodtable extends getbase {	
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	query_foods qa = null;	
	
    /**
     * @see HttpServlet#HttpServlet()
     */
    public getfoodtable() {
        super();
        // TODO Auto-generated constructor stub
    }
    
    protected void initialize_subquery()
    {
    	qa = new query_foods(this.sqlconhandler);
    }
	protected void destory_subquery()
	{
		this.release_query(qa);
	}
    protected List<ClientDataRecordBase> get_data(ClientDataRecord.user_auth_info uai)
    {
    	return  qa.get_foods(uai.ts);
    }
   
}
